<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>字符串</title>
	<script>
		//惰性替换
		//坑
		var str = 'javascript';
		console.log(str.replace('a','w')); //jwvascript
	</script>
</head>
<body>
	
</body>
</html>